{include file="public/public" title='后台首页' keywords='关键字'}
{$title}
<hr>
{$arr[0]}--{$arr.3}
<hr>
{$arr1['name']}--{$arr1.age}
<hr>
{$arr3.0.id}=={$arr3[2]['name']}
<hr>
{$obj->id}=={$obj:name}
<hr>
{$name}=={$age}
<hr>

<hr>
{:md5($name)}
{:url()}
<hr>
{:date('Y-m-d H:i',time())}     日期格式化（支持各种时间类型）
<br>
{name|format='%02d'}
<hr>
{$name|md5|upper|substr=0,3}    	转换为大写
<hr>
{$name|md5|lower|substr=0,3}        转换为小写
<hr>
{$arr|first}                        输出数组的第一个元素
<hr>
{$arr|last}                         输出数组的最后一个元素
<hr>
{$value?$value:'默认值'}   不为空输出$value  空则输出默认值
<!--<?php echo !empty($value) ? ($value) : '默认值'; ?>-->
<hr>
{$value??'默认值'}     $value设置输出$value   没设置输出默认值
<!--<?php echo isset($value) ? ($value) : '默认值'; ?>-->
<hr>
{$value?='默认值'}     如果$value不为空  则输出默认值
<!--<?php if(!empty($value)) echo '默认值'; ?>-->
<hr>
{$value?:'默认值'}     $value不为空输出$value  为空输出默认值
<!--<?php echo !empty($value) ? ($value) : '默认值'; ?>-->
<hr>
{$value==='1'?'真':'假'}    表达式结果为true输出真   false为假
<!--<?php echo $value==='1' ? '真' : '假'; ?>-->
<hr>
//name数据源   item循环的变量    key循环索引值
{foreach name='arr5' item='vo' key='k'}
    {$k}=={$vo['id']}=={$vo['name']}<hr>
{/foreach}
<hr>
{foreach $arr5 as $key=>$vo}
  {$key}:{$vo.id}:{$vo.name}<hr>
{/foreach}
<hr>

{volist name="arr5" id="vo"}
{$vo.id}:{$vo.name}<br/>
{/volist}
<hr>
{volist name="arr5" id="vo" offset="5" length='10'}
{$vo.name}
{/volist}
<hr>
{volist name="arr5" id="vo" mod="2" }
{eq name="mod" value="1"}{$vo.name}{/eq}
{/volist}
<hr>

{volist name="arr5" id="vo" mod="5" }
{$vo.name}
{eq name="mod" value="4"}<br/>{/eq}
{/volist}
<hr>
{volist name="arr5" id="vo" empty="暂时没有数据" }
{$vo.id}|{$vo.name}
{/volist}
<hr>
//name 数据源   id循环变量   $key 循环索引值  key计时(从1开始)   offset起始位置   length展示条数  mod范围循环计时器  empty循环数据为空时输出内容
{volist name="arr5" id="vo" key="k" offset="0" length='12' mod='2' empty="暂时没有据"}
    {$key}===={$mod}=={$k}=={$vo.id}=={$vo.name}<br>
    {eq name="mod" value="1"}<hr>{/eq}
{/volist}


【循环标签：for】<br>
//start开始值  end结束值   comparison比较  step进步值   name变量
{for start="0" end="10" comparison="lt" step="2" name='i'}
{$i}<br>
{/for}
<hr>
【比较标签】<br>
{eq name='name' value='2'}
相等
{else /}
不相等
{/eq}
<hr>
{eq name='name' value='$value'}
相等
{else /}
不相等
{/eq}
<hr>
{heq name='name' value='$value'}
===
{else /}
!===
{/heq}
<hr>
【比较标签：compare标签写法】<br>
{compare name='name' value="1" type="eq"}
{$value}
值
{else/}
{/compare}
<hr>

【判断标签  if】<br>
{if $name ==1}
value值等于1
{elseif $name==2 /}
value值等于2
{else /}
value不知道等于几
{/if}
<hr>

【判断标签  in】<br>
{in name="name" value="1,2,3"}
name在范围内
{else /}
value不知道等于几
{/in}

<hr>
【判断标签：between】<br>
{between name="name" value="1,10"}
输出内容1
{/between}
<hr>

【判断标签：present】<br>
{present name="name"}
name已经赋值
{/present}
<hr>

【判断标签：empty】<br>
{empty name="name"}
name为空值
{/empty}
<hr>

【判断标签：defined】<br>
{defined name="MY_DEFINE_NAME"}
NAME常量已经定义
{/defined}
<hr>

【定义标签：define】<br>
{define name="MY_DEFINE_NAME" value="3" /}
<hr>

【判断标签：defined】<br>
{defined name="MY_DEFINE_NAME"}
NAME常量已经定义
{/defined}
<hr>
<body style="background-color:#f2f9fd;">
<div class="header bg-main">
  <div class="logo margin-big-left fadein-top">
    <h1><img src="images/y.jpg" class="radius-circle rotate-hover" height="50" alt="" />皓风后台管理中心</h1>
  </div>
  <div class="head-l">
  	<a class="button button-little bg-green" href="" target="_blank"><span class="icon-home"></span> 前台首页</a> &nbsp;&nbsp;
  	<a class="button button-little bg-red" href="login.html"><span class="icon-power-off"></span> 退出登录</a>
  </div>
</div>
<div class="leftnav">
  <div class="leftnav-title"><strong><span class="icon-list"></span>菜单列表</strong></div>
  <h2><span class="icon-columns"></span>基本设置</h2>
  <ul style="display:block">
    <li><a href="info.html" target="right"><span class="icon-caret-right"></span>网站设置</a></li>
    <li><a href="pass.html" target="right"><span class="icon-caret-right"></span>修改密码</a></li>
    <li><a href="adv.html" target="right"><span class="icon-caret-right"></span>首页轮播</a></li>   
  </ul>   
  <h2><span class="icon-picture-o"></span>商品管理</h2>
  <ul>
    <li><a href="good_list.html" target="right"><span class="icon-caret-right"></span>商品列表</a></li>
    <li><a href="good_add.html" target="right"><span class="icon-caret-right"></span>添加商品</a></li>
    <li><a href="cate.html" target="right"><span class="icon-caret-right"></span>分类管理</a></li>        
  </ul> 
  <h2><span class="icon-pencil-square-o"></span>订单管理</h2>
  <ul>
    <li><a href="order_list.html" target="right"><span class="icon-caret-right"></span>订单列表</a></li>    
  </ul>  
  <h2><span class="icon-user"></span>会员管理</h2>
  <ul>
    <li><a href="vip_list.html" target="right"><span class="icon-caret-right"></span>会员列表</a></li>
    <li><a href="vip_add.html" target="right"><span class="icon-caret-right"></span>添加会员</a></li>    
  </ul> 
  <h2><span class="icon-group"></span>管理员管理</h2>
  <ul>
    <li><a href="user.html" target="right"><span class="icon-caret-right"></span>管理员列表</a></li>
    <li><a href="user_add.html" target="right"><span class="icon-caret-right"></span>添加管理员</a></li>
    <li><a href="auth.html" target="right"><span class="icon-caret-right"></span>权限组列表</a></li>        
    <li><a href="auth_add.html" target="right"><span class="icon-caret-right"></span>添加权限组</a></li>        
  </ul> 
</div>
<script type="text/javascript">
$(function(){
  $(".leftnav h2").click(function(){
	  $(this).next().slideToggle(200);	
	  $(this).toggleClass("on"); 
  })
  $(".leftnav ul li a").click(function(){
	    $("#a_leader_txt").text($(this).text());
  		$(".leftnav ul li a").removeClass("on");
		$(this).addClass("on");
  })
});
</script>
<ul class="bread">
  <li><a href="{:url('Index/info')}" target="right" class="icon-home"> 首页</a></li>
  <li><a href="##" id="a_leader_txt">网站信息</a></li>
  <li><b>当前语言：</b><span style="color:red;">中文</php></span>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;切换语言：<a href="##">中文</a> &nbsp;&nbsp;<a href="##">英文</a> </li>
</ul>
<div class="admin">
  <iframe scrolling="auto" rameborder="0" src="info.html" name="right" width="100%" height="100%"></iframe>
</div>
<div style="text-align:center;">
<p>来源:<a href="http://www.mycodes.net/" target="_blank">源码之家</a></p>
</div>
</body>
</html>